// 文字颜色
@color: #c91523;
@tColor: #666;
.view {
    background: #fff;
    // 顶部搜索部分样式
    .search {
        display: flex;
        // 定死高度
        height: 40px;
        background: #ff0000;
        // logo
        .logo {
            width: 70px;
            height: 100%;
            // background: blue;
            display: flex;
            justify-content: center;
            align-items: center;
           i {
            width: 112px/2;
            height: 42px/2;
            background: url('../images/jd-sprites.png') no-repeat 0 -220px/2;
            background-size: 200px;
           }
        }
        // 搜索框
        .search_box {
            flex: 1;
            // background: green;
            padding: 5px 0;
            position: relative;
            input {
                width: 100%;
                height: 100%;
                border-radius: 15px;
                text-indent: 35px;
            }
            &::before {
                content: '';
                display: block;
                position: absolute;
                width: 19px;
                height: 19px;
                background: url('../images/jd-sprites.png') no-repeat -120px/2 -220px/2;
                background-size: 200px;
                top: 10px;
                left: 10px;
            }
        }
        // 登陆
        .login {
            width: 50px;
            height: 100%;
            color: #fff;
            font-size: 14px;
            line-height: 40px;
            text-align: center;
        }
    }

    // 轮播图部分样式
    .slider {
        ul {
            li {
                img {
                    width: 100%;
                }
            }
        }
    }

    // 导航部分样式
    .jd_nav {
        display: flex;
        flex-wrap: wrap;
        a {
            width: 25%;
            text-align: center;
            color: #666666;
            padding: 5px 0;
            img {
                width: 50%;
                margin-bottom: 3px;
            }
            // p {}
        }
    }

    // 掌上秒杀部分样式
    .seckill {
        margin-top: 10px;
        // 秒杀标题
        .seckill_title {
            display: flex;
            justify-content: space-between;
            .title_content {
                display: flex;
                padding-left: 15px;
                .clook {
                   width: 21px;
                   height: 21px;
                   background: url('../images/jd-sprites.png') no-repeat -170px/2 -220px/2;
                   background-size: 200px; 
                }
                h3 {
                    font-size: 14px;
                    font-weight: normal;
                    color: @color;
                    margin: 0 10px;
                }
                .time {
                    span {
                        background: #000;
                        color: #fff;
                        padding: 0 3px;
                        font-size: 14px;
                        &:nth-child(3n) {
                            background: #fff;
                            color: #000;
                        }
                    }
                }
            }
            >a {
                color: #333;
                font-size: 14px;
            }
        }
        // 秒杀内容
        .seckill_content {
            ul {
                display: flex;
                li {
                    flex: 1;
                    position: relative;
                    a {
                        img {
                            width: 90%;
                        }
                        p {
                            text-align: center;
                            color: @color;
                            font-size: 14px;
                            del {
                                color: @tColor;
                            }
                        }
                        span {
                            display: block;
                            position: absolute;
                            width: 46px;
                            height: 28px;
                            background: #fdb60a;
                            border-radius: 50%;
                            line-height: 28px;
                            text-align: center;
                            color: #fff;
                            font-size: 14px;

                            top: 50%;
                            right: 25%;
                        }
                    }
                }
            }
        }
    }
}